﻿using App.Dictionary;
using App.Guidance;
using System;
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Xml;

namespace App {
	static class Program {
		public static SqlConnection conn = new SqlConnection();
		public static int intWorkerId = 0;
		public static int intHospitalId = 0;
		public static int intWorkerDepartmentId = 0;

		public static string strAppTitle = "";
		public static string strHospitalName = "";
		public static string strDepartmentName = "";
		public static string strUsername = "";
		public static string strRealname = "";
		
		public static XmlDocument xmlApp = new XmlDocument();

		//****************************************************************************************************
		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main() {
			string strXmlPath = "app.config";
			xmlApp.Load(strXmlPath);

			strAppTitle = xmlApp.SelectSingleNode("/config/system/title").InnerText;

			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);

			//Application.Run(new App.Dictionary.FrmPart());
			//Application.Run(new App.Dictionary.FrmUnit());
            //Application.Run(new App.Dictionary.FrmSample());
            Application.Run(new App.Dictionary.FrmSampleEdit());

<<<<<<< .mine
            //Application.Run(new App.FrmLogin());
            //Application.Run(new App.FrmMain());
||||||| .r34
			//Application.Run(new App.FrmLogin());
			Application.Run(new App.FrmMain());
=======
			//Application.Run(new App.FrmLogin());
			//Application.Run(new App.FrmMain());
>>>>>>> .r35
			//Application.Run(new FrmPassword());

			//Application.Run(new FrmHospital());
			//Application.Run(new FrmHospitalEdit(0));

			//Application.Run(new FrmDepartment());
			//Application.Run(new FrmDepartmentEdit(20));

			//Application.Run(new FrmWorker());
			//Application.Run(new FrmWorkerEdit(0));

			//Application.Run(new FrmDepartmentType());
			//Application.Run(new FrmDepartmentTypeEdit(0));

			//Application.Run(new FrmSmsTemplate());
			//Application.Run(new FrmSayTemplate());
			//Application.Run(new FrmRemarkTemplate());
			//Application.Run(new FrmWorkerType());

			//Application.Run(new FrmCardType());
			//Application.Run(new FrmEntity());
			//Application.Run(new FrmCertificateType());
			//Application.Run(new FrmUserSource());

			//Application.Run(new FrmUserType());
			//Application.Run(new FrmUserType(0));

			//Application.Run(new FrmJobType());
			//Application.Run(new FrmJobTypeEdit(0));

			//Application.Run(new FrmRegisterType());
			//Application.Run(new FrmRegisterType(0));

			//Application.Run(new FrmRelation());
			//Application.Run(new FrmRelationTypeEdit(0));

			//Application.Run(new FrmUserLevel());
			//Application.Run(new FrmUserLevelEdit(0));

			//预约
			//Application.Run(new FrmReserver());
			//Application.Run(new FrmReserverEdit(1));

			//导诊
			//Application.Run(new FrmCard());
			//Application.Run(new FrmCardEdit(1));

			Application.Run(new FrmCity());
		}
		//****************************************************************************************************
	}
}
